const baseURL = "http://localhost:3000"
import axios from "axios"
function http({ url, params }) {
    return new Promise((resolve, reject) => {
        axios.get(baseURL + url, { params }).then((req, res) => {
            resolve(res)
        })
    })
}

/* 查询所有用户 */
export function getAllUser(url, { params }) {
    return http({ url, params })
}